package tw.miku.protocol.codec.user;

import org.apache.mina.core.buffer.IoBuffer;

import tw.miku.constants.ProtocalConstants;
import tw.miku.protocol.codec.AbstractRequestMessagePack;
import tw.miku.util.BufferUtility;

public class GetReadyRequestPack extends AbstractRequestMessagePack
{

	public boolean isReady;

	public GetReadyRequestPack(IoBuffer buffer)
	{
		super(buffer);
	}

	@Override
	public void decode()
	{
		super.decode();
		buffer.position(4);
		isReady = ((buffer.get()) == 0);

	}

	@Override
	public short getTag()
	{
		return ProtocalConstants.GET_READY;
	}

}
